
package net.lab0.electron.ai;


import java.util.HashMap;


public class GPVarList
{
    private static HashMap<String, Double> var = new HashMap<String, Double>();
    
    public static double get(String varName)
    {
        Double v = var.get(varName);
        if (v != null)
        {
            return v;
        }
        else
        {
            return Double.NaN;
        }
    }
    
    public static void set(String varName, Double value)
    {
        if (var.containsKey(varName))
        {
            var.remove(varName);
            var.put(varName, value);
        }
    }
}
